import styled from 'styled-components';
import zfb from '../../statics/sys.png'

export const HomeWrapper = styled.div`
      width:960px;
      margin:0 auto;
      overflow:hidden;
`;
export const HomeLeft = styled.div`
      width:625px;
      margin-left:15px;
      padding-top:30px;
      float:left;
      .banner-img{
       width:625px;
       height:270px;
       border-radius: 6px;
       cursor:pointer;
      }
`;
export const TopicItem = styled.div`
      float:left;
      background:#f7f7f7;
      height:32px;
      line-height:32px;
      text-indent:10px;
      padding-right:10px;
      margin-left:18px;
      font-size:14px;
      border:1px solid #dcdcdc;
      border-radius:4px;
      margin-bottom:10px;
      .topic-pic{
        display:block;
        float:left;
        width:32px;
        height:32px;
      }
      overflow:hidden;
      cursor:pointer;
      user-select:none;
`;
export const HomeRight = styled.div`
      width:280px;
      float:right;
      position:relative;
`;
export const TopicWrapper = styled.div`
      margin-left:-18px;
      padding:20px 0 10px 0;
      overflow:hidden;
      border-bottom:1px solid #dcdcdc;
`;
export const TopicMore = styled.a`
      display:inline-block;
      line-height:32px;
      text-indent:18px;
      cursor:pointer;
      color:#969696;
      user-select:none;
      &:hover{
        color:#333;
       }
`;
export const ListItem = styled.div`
      padding:20px 0;
      border-bottom:1px solid #dcdcdc;
      overflow:hidden;
      .pic{
       width:125px;
       height:100px;
       display:block;
       float:right;
       border-radius:4px;
       cursor:pointer;
     }
`;
export const ListInfo = styled.div`
       width:500px;
       float:left;
       .title{
       font-size:18px;
       line-height:27px;
       font-weight:bold;
       color:#333;
       margin:-7px 0 4px;
       cursor:pointer;
       &.title:hover{
       text-decoration:underline;
       }
       }
       .desc{
       font-size:13px;
       line-height:24px;
       color:#999;
       }
`;
export const LoadMore=styled.div`
       width:100%;
       height:40px;
       line-height:40px;
       margin:30px 0 60px;
       text-align:center;
       border-radius:20px;
       background:#a5a5a5;
       color:#fff;
       cursor:pointer;
       user-select:none;
       font-size:15px;
       &:hover{
        background:#999;
       }
`;
export const RecommendWrapper = styled.div`
       margin-top:26px;
       width:280px;
`;
export const RecommendItem = styled.div`
       width:280px;
       min-width:228px;
       height:50px;
       margin-bottom: 6px;
       background:url(${(props) => props.imgUrl});
       background-size:contain;
       cursor:pointer;
`;
export const QrCodeWrapper = styled.div`
       position:relative;
       margin-bottom: 30px;
       margin-top:10px;
       padding: 10px 22px;
       user-select:none;
       width: 100%;
       height:82px;
       border: 1px solid #f0f0f0;
       border-radius: 6px;
       background-color: #fff;
       box-sizing:border-box;
       cursor:pointer;
       .QrCodePic{
        width:60px;
        height:60px;
        float:left;
       }
       
       .QrCodeInfo{
        display: inline-block;
        vertical-align: middle;
        margin-left: 10px;
       .title{
        margin-top:6px;
        line-height:1.5;
        font-size: 15px;
        color: #333;
        .iconfont{
         font-size:14px;
         margin-left:2px;
         }
        }
        .description{
        margin-top: 4px;
        font-size:13px;
        color:#999;
        }
       }
`;
export const QrCodeBox = styled.div`
      position:relative;
      box-sizing:border-box;
      .hide-enter {
       opacity:0;
      transition: opacity .5s ease-in-out;
      }
      .hide-enter-active {
       opacity:1;
       transition:opacity .5s ease-in-out;
      }
      .hide-exit {
       opacity:1;
       transition: opacity .5s ease-in-out;
      }
      .hide-exit-active {
       opacity:0;
       transition: opacity .5s ease-in-out;
      }
      .QrCodeMouse{
        position:absolute;
        top:-194px;
        left:50px;
        border-radius:6px;
        width:184px;
        height:184px;
        background: url(${zfb});
        background-position: center center;
        background-size:contain;
        border:1px solid #b5b5b5;
        box-shadow: 0 5px 10px rgba(0,0,0,.2);
        &::after{
        content:'';
        display:block;
        width:0;
        height:0;
        top:184px;
        left:82px;
        position:absolute;
        border-style:solid;
        border-color:#fff transparent transparent  transparent;
        border-width:10px 10px 10px 10px;
        }
        }
        .hide{
        display:none;
        }
`;
/*export const QrCodeMouse=styled.div`

`;*/
export const WriterWrapper = styled.div`
    margin-bottom: 20px;
    padding-top: 0;
    font-size: 13px;
`;
export const WriterTitle = styled.div`
    margin-top:20px;
    margin-bottom:15px;
    line-height:20px;
    font-size:14px;
    color:#969696;
    user-select:none;
`;
export const WriterInfoSwitch = styled.div`
    float:right;
    font-size:13px;
    cursor:pointer;
    .spin{
      display:block;
      float:left;
      font-size:12px;
      margin-right:2px;
      transition:all .5s ease;
      transform:rotate(0deg);
      transform-origin:center center;
    }
`;
export const WriterList = styled.ul`
    margin: 0 0 20px;
    text-align: left;
    list-style: none;
`;
export const WriterItem = styled.li`
    margin-top: 15px;
    line-height: 20px;
    img{
     float:left;
     width:48px;
     height:48px;
     margin-right: 10px;
     border-radius:50%;
     cursor:pointer;
     user-select:none;
    }
     .QrCodeInfo{
        display:inline-block;
        vertical-align: middle;
        width:222px;
       .title{
       padding-top: 5px;
       font-size: 14px;
       display: inline-block;
       cursor:pointer;
       user-select:none;
        }
        .follow{
         float: right;
         margin-top: 5px;
         padding: 0;
         font-size: 13px;
         color: #42c02e;
         cursor:pointer;
         user-select:none;
        }
        .description{
        margin-top: 4px;
        font-size:12px;
        color:#969696;
        }
       }
`;
export const FindMore = styled.div`
    margin-top:20px;
    text-align:center;
    padding: 7px 7px 7px 12px;
    user-select:none;
    left: 0;
    width:280px;
    font-size: 13px;
    color: #787878;
    background-color: #f7f7f7;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    box-sizing:border-box;
    line-height:20px;
    cursor:pointer;
    .iconfont{
     font-size:13px;
     color: #333;
     font-weight:400;
    }
`;
export const TopWrapper=styled.div`
     position:fixed;
     bottom: 40px;
     right: 40px;
     .desc{
      background:#333;
      width:60px;
      padding:5px 10px;
      line-height:20px;
      display:block;
      position:absolute;
      color:#fff;
      font-size:14px;
      text-align:center;
      top:10px;
      left:-88px;
      border-radius:4px;
      &::after{
      content:"";
      display:block;
      width:0;
      height:0;
      border-style:solid;
      border-width:5px 5px 5px 5px;
      border-color:transparent transparent transparent #333;
      position:absolute;
      right:-10px;
      top:10px;
      }
     }
      .hide{
      display:none;
     }
`;
export const Top =styled.div`
     width:50px;
     height:50px;
     line-height:50px;
     text-align:center;
     border:1px solid #dcdcdc;
     background-color: #fff;
     transition: .1s ease-in;
     bottom: 40px;
     right: 40px;
     z-index: 1040;
     cursor:pointer;
     user-select:none;
     &:hover{
     background:#e9e9e9;
     }
     .iconfont{
      font-size: 17px;
      color:#333;
     } 
`;
